#include <amtest.h>
#include "trap.h"
int main()  {
    char *p=(char *)malloc(sizeof(char) * 5);
    char *p_r = p;
    for (size_t i = 0; i <3; i++)
    {
        *(p+4*i+0)    = 0x78;
        *(p+4*i+1)    = 0x56;
        *(p+4*i+2)    = 0x34;        
        *(p+4*i+3)    = 0x12;
    }
    for (size_t i = 0; i <3; i++)
    {
        check( *(int *)(p_r+i*4) == 0x12345678);        
    }


    int *p_int=(int *)malloc(sizeof(char) *  0x399000);
    for (size_t i = 0x96400; i <0xe6500; i++)
    {
        *(p_int+4*i)    = (0x01020304 & i);
        check( *(p_int+i*4) == (0x01020304 & i)); 
    }
}